package com.google.gwt.gfx.client.overlays;

import com.google.gwt.gfx.client.style.AnchorStyle;

public class Icon extends GFXImage implements AnchorOverlay {

	private AnchorStyle anchorRef;

	public Icon() {
		super();

		anchorRef = new AnchorStyle(this) {

			@Override
			public int getCenterDeltaLeft() {
				return getAnchorCenterDeltaLeft();
			}

			@Override
			public int getCenterDeltaTop() {
				return getAnchorCenterDeltaTop();
			};

		};
		addStyleName("gfx-Icon");
	}

	@Override
	public AnchorStyle anchor() {
		return anchorRef;
	}

	protected int getAnchorCenterDeltaLeft() {
		return 0;
	}

	protected int getAnchorCenterDeltaTop() {
		return 0;
	}

}
